package org.example.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.entity.Roles;
import org.example.mapper.RolesMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2025-11-03
 */
@Service
public class RolesServiceImpl extends ServiceImpl<RolesMapper, Roles> {
    @Autowired
    private RolesMapper rolesMapper;

    public List<Roles> allRole() {
        return rolesMapper.selectList(null);
    }
}
